import request from '@/utils/request'

// 获取商品列表
export function getGoodsListApi(params) {
  return request({
    method: 'GET',
    url: '/goods',
    params
  })
}

// 添加商品
export function addGoodsApi(data) {
  return request({
    method: 'post',
    url: '/goods',
    data,
    timeout: 10000
  })
}
